/**
 * 
 */
package com.cp16.tss.test;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

import com.cp16.tss.bo.UserLoginBO;
import com.cp16.tss.model.UserLogin;

/**
 * @author ADMIN
 * 
 */
public class Presentation {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		Scanner scanner = new Scanner(System.in);
		System.out.println("Hello, What do you want to do?");
		System.out.println("1.Press 1 to login to the system management");
		System.out.println("2.Press 2 to delete");
		int input = scanner.nextInt();
		if (input == 1) {
			List<UserLogin> lstUserLogin = new ArrayList<UserLogin>();
			UserLoginBO userBO = new UserLoginBO();
			lstUserLogin = userBO.getAllUser();

			if (lstUserLogin.size() > 0) {
				for (UserLogin userLogin : lstUserLogin) {
					System.out.println(userLogin.getUserId());
					System.out.println(userLogin.getFullName());
					System.out.println(userLogin.getUserName());
					System.out.println(userLogin.getPassword());

				}
			} else {
				System.out.println("List is Null");
			}
		} else {
			System.out.println("Chon lai");
		}
	}

}
